﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class NewsContent
    {
        private int NewsId;
        private string NewsTitle;
        private int NewsClassId;
        private string NewsAuthor;
        private string NewsArticle;
        private string NewsImgUrl;
        private bool NewsIsShow;
        private DateTime NewspubTime;
        private string NcTitle;
        private bool NcIsShow;
        public int id {
            get { return NewsId; }
            set { NewsId = value; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title {
            get { return NewsTitle; }
            set { NewsTitle = value; }
        }
        public string Author {
            get { return NewsAuthor; }
            set { NewsAuthor = value; }
        }
        /// <summary>
        /// 所属类别
        /// </summary>
        public int ClassId {
            get { return NewsClassId; }
            set { NewsClassId = value; }
        }
        /// <summary>
        /// 新闻内容
        /// </summary>
        public string Content {
            get { return NewsArticle; }
            set { NewsArticle = value; }
        }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string ImgUrl {
            get { return NewsImgUrl; }
            set { NewsImgUrl = value; }
        }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool IsLock {
            get { return NewsIsShow; }
            set { NewsIsShow = value; }
        }
        /// <summary>
        /// 新闻发布时间
        /// </summary>
        public DateTime PubTime {
            get { return NewspubTime; }
            set { NewspubTime = value; }
        }
        /// <summary>
        /// 类别名称
        /// </summary>
        public string ncTitle
        {
            get { return NcTitle; }
            set{NcTitle = value;}
        }
        /// <summary>
        /// 类别是否显示
        /// </summary>
        public bool ncIsShow {
            get { return NcIsShow; }
            set { NcIsShow = value; }
        }

        public NewsContent() { }
    }
}
